/*
 * @Author: HanYaJun
 * @Date: 2023-01-05 17:30:22
 * @Email: hanyajun@wedobest.com.cn
 * @Description: 检测结果
 */

const trace = function (...args) {
    console.log('TestResult【HYJ】', ...args);
}

const traceError = function (...args) {
    console.error('TestResult【HYJ】', ...args);
}

const { ccclass, property } = cc._decorator;

@ccclass
export default class TestResult extends cc.Component {
    /**
     * @description: 立即查看
     */
    public check(): void {
        this.node.dispatchEvent(new cc.Event.EventCustom('findReport', true));
    }

    /**
     * @description: 选择关闭
     */
    public clickClose(): void {
        this.node.destroy();
        cc.sys.localStorage.setItem('beignTime', true);
        this.node.dispatchEvent(new cc.Event.EventCustom('beginTimeCount', true));
    }
}
